﻿using Windows.UI.Xaml.Controls;

namespace CalciumTemplateApp.UI
{
	/// <summary>
	/// An empty page that can be used on its own or navigated to within a Frame.
	/// </summary>
	public sealed partial class MainView : Page
	{
		public MainView()
		{
			DataContext = new MainViewModel();

			this.InitializeComponent();
		}

		public MainViewModel ViewModel => (MainViewModel)DataContext;

		void HandleSplitViewClosing(SplitView sender, SplitViewPaneClosingEventArgs args)
		{
			ViewModel.HandleLaunchpadClosing();
		}
	}
}
